package com.smbms.pojo;

import java.util.Date;
import java.util.List;

public class User {
	private Integer id;
	private String userName; 
	private String userCode; 
	
	private String userPassword; 
	private Integer gender; 
	private Date birthday; 
	private String phone; 
	private String address; 
	private Integer userRole; 
	private Integer createdBy; 

	private Date creationDate; 
	private Integer modifyBy; 
	private Date modifyDate;
	
	private String userRoleName;
	
	private String roleName;
	private Role role;
	
	private List<Address> addressList;
	
	public String getRoleName() {
		return roleName;
	}
	public List<Address> getAddressList() {
		return addressList;
	}
	public void setAddressList(List<Address> addressList) {
		this.addressList = addressList;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserRoleName() {
		return userRoleName;
	}
	public void setUserRoleName(String userRoleName) {
		this.userRoleName = userRoleName;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getUserRole() {
		return userRole;
	}
	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}
	public Integer getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	public Integer getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(Integer modifyBy) {
		this.modifyBy = modifyBy;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", userCode=" + userCode + ", userPassword=" + userPassword
				+ ", gender=" + gender + ", birthday=" + birthday + ", phone=" + phone + ", address=" + address
				+ ", userRole=" + userRole + ", createdBy=" + createdBy + ", creationDate=" + creationDate
				+ ", modifyBy=" + modifyBy + ", modifyDate=" + modifyDate + ", userRoleName=" + userRoleName
				+ ", roleName=" + roleName + ", role=" + role + ", addressList=" + addressList + ", getRoleName()="
				+ getRoleName() + ", getAddressList()=" + getAddressList() + ", getId()=" + getId()
				+ ", getUserRoleName()=" + getUserRoleName() + ", getUserCode()=" + getUserCode() + ", getUserName()="
				+ getUserName() + ", getUserPassword()=" + getUserPassword() + ", getGender()=" + getGender()
				+ ", getBirthday()=" + getBirthday() + ", getPhone()=" + getPhone() + ", getAddress()=" + getAddress()
				+ ", getUserRole()=" + getUserRole() + ", getCreatedBy()=" + getCreatedBy() + ", getCreationDate()="
				+ getCreationDate() + ", getModifyBy()=" + getModifyBy() + ", getModifyDate()=" + getModifyDate()
				+ ", getRole()=" + getRole() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}
	
	
	
	
	

	
}
